"""
-*- coding: utf-8 -*-
@Author : yyc
@Time : 2023/8/29 09:30
@File : urls.py
"""
from django.urls import path
from django.conf.urls import url, include
from django.views.static import serve
from modelProject import settings
from knowledge1 import views


urlpatterns = [
    path('insert_data/', views.get_data),
    path('search_data/', views.search_data),
    path('delete_data/', views.delete_data),
    path('insert_label/', views.get_label),
    path('compare_sim_question/', views.compare_sim_question),
    path('get_file_content/', views.get_file_content),
    path('recover_data/', views.insert_data_from_mysql),
    path('get_project_base/', views.get_mapping_project_base),
    # 临时接口
    path('update_group_name/', views.update_group_name),
    path('delete_project/', views.delete_project),
    path('build_project/', views.build_project),
    path('build_base/', views.build_base),
    path('save_error_data/', views.save_error_data),
    path('move_knowledge_base/', views.move_knowledge_base),
    # url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    ]